package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Rule;
import com.indusfo.spc.vo.JSONObject;

public interface RuleService {

    /**
     * 新增
     * @param rule
     * @return
     */
    JSONObject insertRule(Rule rule);

    /**
     * 删除
     */
    JSONObject delRule(Integer[] ids, Integer dataState);

    /**
     * 更改
     */
    JSONObject updateRule(Rule rule);

    /**
     * 编码查重
     * @param ruleId
     * @param ruleName
     * @return
     */
    Rule getByRuleCode(Integer ruleId, String ruleCode);

    /**
     *
     * 查询
     * @param rule
     * @return
     */
    public JSONObject queryRule(Rule rule);

}
